package com.ashley.day_0405;

public class ShuiXianHuaShu {

	public static void main(String[] args) {
		for (int num = 100; num <= 999; num++) {
			int b = 0;
			int s = 0;
			int g = 0;
			b = num / 100;
			s = (num - 100 * b) / 10;
			g = num - 100 * b - 10 * s;
			if (b * b * b + s * s * s + g * g * g == num) {
				System.out.println(num);
			}
		}

	}

}
